package com.bwie.house.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bwie.common.utils.PageUtils;
import com.bwie.common.utils.Query;

import com.bwie.house.dao.SchoolHousingDao;
import com.bwie.house.entity.SchoolHousingEntity;
import com.bwie.house.service.SchoolHousingService;


@Service("schoolHousingService")
public class SchoolHousingServiceImpl extends ServiceImpl<SchoolHousingDao, SchoolHousingEntity> implements SchoolHousingService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<SchoolHousingEntity> page = this.page(
                new Query<SchoolHousingEntity>().getPage(params),
                new QueryWrapper<SchoolHousingEntity>()
        );

        return new PageUtils(page);
    }

}